#include "chinesestrategy.h"
#include "organizedtextcontext.h"

ChineseStrategy::ChineseStrategy()
{
}

int ChineseStrategy::getCharsBeforeNewLine(XCHAR * text, int currChar, int currCharsInLine){
    XCHAR c = text[currChar];
    int ret = 0;
    while( !GameSystem::isSeperator(c) ){
        ++ret;
        if( currCharsInLine + ret >= ((OrganizedTextContext *)_context)->getCharsPerLine())
            break;
        c = text[++currChar];
    }
    return ret;
}
